﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace InterfaceType
{
    interface ICompute
    {
        int Id { get; set; }

        string Name { get; set; }

        void Total();

        void Avg();
    }
    //显示接口
    public class Computer : ICompute
    {
        int ICompute.Id { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
        string ICompute.Name { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }

        void ICompute.Avg()
        {
            Console.WriteLine("1+1=2");
        }

        void ICompute.Total()
        {
            Console.WriteLine("1*1=1");
        }
    }
}
